(function(TYPES,typeId){
    function my_n(){
        var that = this;
        this.run=function(arr1,arr2){
            var output = 0;
            var my_a = [];
            for (var my_b in arr1) {
                my_a.push(my_b);
            };
            var my_c = my_a.length;
            (function my_d(my_e){
                if (my_e < my_c) {
                    var my_f = my_a[my_e];
var a = arr1[my_f];
var my_g = ME.run(a);
my_g.onComplete=function(result){
                        var res1 = result;
                        output+=res1;
                        var my_h = [];
                        for (var my_i in arr2) {
                            my_h.push(my_i);
                        };
                        var my_j = my_h.length;
                        (function my_k(my_l){
                            if (my_l < my_j) {
                                var my_m = my_h[my_l];
var b = arr2[my_m];
output+=b;
my_k(my_l+1);
                            } else {
                                my_d(my_e+1);
                            };
                        })(0);
                    }
                } else {
                    that.onComplete(output);
                };
            })(0);
        }
        this.onComplete=function(result){
            return result;
        }
    }    TYPES.registerType(typeId,my_n);
})(RULES,"test1-1");
